<template>
  <div>
    Parent
    <hr />
    <Child />
  </div>
</template>

<script>
import { inject } from 'vue'
import Child from './Child.vue';

export default {
  name: "Parent",
  components: { Child },
  setup() {
    const r = inject('moneyData')
    console.log(r)
  }
}
</script>

<style lang="scss" scoped></style>